﻿using System.Diagnostics;
using System.Xml.Serialization;
using PrearrangedChaos.AgileZen.Service.Model;

namespace PrearrangedChaos.AgileZen.Service.Rest
{
    [DebuggerStepThrough()]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRoot(ElementName = "attachments", Namespace = "", IsNullable = false)]
    [ZenRestRequest("projects/{ProjectId}/stories/{StoryId}/attachments")]
    public partial class AttachmentCollection : PagingCollection<Attachment>
    {

        private Attachment[] _items;

        [XmlArrayItemAttribute("attachment", IsNullable = false)]
        [XmlArray(ElementName = "items")]
        public Attachment[] Items
        {
            get
            {
                return this._items;
            }
            set
            {
                this._items = value;
            }
        }

        public override Attachment[] GetItems()
        {
            return this._items;
        }
    }
}
